let http=require('http');
const { url } = require('inspector');
let sever=http.createServer((req,res)=>{
    res.setHeader('content-type','text/html;charset=utf-8');
    console.log('中国');
    console.log(req.url);
    if(req.url=='/favicon.ico'){
        return;
    }
    if(req.url=='/index'||req.url=='/'){
        res.end('首页');
    }else if(req.url=='/login'){
        res.end('登录');
    }else if(req.url=='/reg'){
        res.end('注册');
    }else if(req.url=='/order'){
        res.end('产品订单表');
    }else if(req.url=='/ETP'){
        res.end('产品表');
    }else{
        res.end('找不到该页面');
    }
}).listen(3000,'www.myphp8899.com');